<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>代理卡配置</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="365169526">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "365169526";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("agentconf.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		if($("#agreement").size()>0){
			 //构造编辑页agentConf.agreement为html编辑控件
			 KE.init({
				id : "agreement",
				width : "750px",height : "300px", 
				imageUploadJson : window["uploadUrl"]
			 });
			 KE.create("agreement");
		 }
		 
	$("#agentconfForm").form({
		"":function(){}
		,"agentConf.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"agentConf.name":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "名称不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "名称最大长度为32个字符";
		}
		,"agentConf.products":function(el){
		}
		,"agentConf.price":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理卡价格输入格式错误";
		}
		,"agentConf.dlZjJl":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理直接奖励输入格式错误";
		}
		,"agentConf.dlJjJl":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理间接奖励输入格式错误";
		}
		,"agentConf.fxZjJl":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "分销直接奖励输入格式错误";
		}
		,"agentConf.fxJjJl":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "分销间接奖励输入格式错误";
		}
		,"agentConf.purchase":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "代理政策简述最大长度为256个字符";
		}
		,"agentConf.agreement":function(el){
			if($("#agreement").get(0))
			 	KE.sync("agreement");		 
		}
		,"agentConf.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"agentConf.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"agentConf.policy":function(el){
			if(el.value.length>2000 && el.value.indexOf("[*]")==-1)
				return "分销政策最大长度为2000个字符";
		}
		,"agentConf.interest":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "权益介绍文字最大长度为256个字符";
		}
		,"agentConf.agentcAgentAccessionConditions":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "代理加入条件最大长度为256个字符";
		}
		,"agentConf.qrCode":function(el){
		}
		,"agentConf.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
		,"agentConf.merchant":function(el){
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>



<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="AgentConf" id="agentconfForm" name="agentconfForm" target="jsoniframe" action="agentconf.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写代理卡配置相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{agentConf$id}}">
				{{agentConf$id}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$id}}">
			<input type="hidden" value="{{lz.htm(agentConf.id)}}" name="agentConf.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{agentConf.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.id$||agentConf.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("name_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"name"))))}}
	{{lz.set("name_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>名　　称:</dt>
		<dd lz:if="{{name_editable}}" input="text">
			<lz:block lz:if="{{agentConf$name}}">
				{{agentConf$name}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$name}}">
		 	<input type="text" class="input narrow"   name="agentConf.name" id="name"  value="{{lz.htm(agentConf.name)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入代理卡配置的名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{agentConf.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.name$||agentConf.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
	{{lz.set("products_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"products"))))}}
	{{lz.set("products_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$products}}
	<dl lz:if="{{products_editable||products_readonly}}" class="ribs products   wider" minor  ref="products">
		<dt>产品配置:</dt>
		<dd lz:if="{{products_editable}}" input="grid">
			<lz:block lz:if="{{agentConf$products}}">
				{{agentConf$products}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$products}}">
		    <textarea class="input wide grid" grid="[
		    	['商品',null,'query','commodity','/manage/query.Commodity.do']
		    	,['数量',null,'number','number','']
		    	,['价格',null,'money','price','']
		    ]" id="products" name="agentConf.products">{{agentConf.products}}</textarea> 
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{products_readonly}}">
		 	<div class=" wide">
		 		<textarea class=""  style="display:none;" id="products">{{agentConf.products}}</textarea>
		 		<span>
			<textarea class="input wide grid" grid="[
		    	['商品',null,'query','commodity','/manage/query.Commodity.do']
		    	,['数量',null,'number','number','']
		    	,['价格',null,'money','price','']
		    ]" readonly>{{agentConf.products}}</textarea>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$products}}
	{{lz.set("price_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"price"))))}}
	{{lz.set("price_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$price}}
	<dl lz:if="{{price_editable||price_readonly}}" class="ribs price  " major  ref="price">
		<dt>代理卡价格:</dt>
		<dd lz:if="{{price_editable}}" input="menoy">
			<lz:block lz:if="{{agentConf$price}}">
				{{agentConf$price}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$price}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="agentConf.price" id="price"  value="{{lz.htm(agentConf.price)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的代理卡价格</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{price_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="price">{{agentConf.price}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.price$||agentConf.price)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$price}}
	{{lz.set("dlZjJl_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"dlZjJl"))))}}
	{{lz.set("dlZjJl_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$dlZjJl}}
	<dl lz:if="{{dlZjJl_editable||dlZjJl_readonly}}" class="ribs dlZjJl  " major  ref="dlZjJl">
		<dt>代理直接奖励:</dt>
		<dd lz:if="{{dlZjJl_editable}}" input="menoy">
			<lz:block lz:if="{{agentConf$dlZjJl}}">
				{{agentConf$dlZjJl}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$dlZjJl}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="agentConf.dlZjJl" id="dlZjJl"  value="{{lz.htm(agentConf.dlZjJl)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的代理直接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{dlZjJl_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="dlZjJl">{{agentConf.dlZjJl}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.dlZjJl$||agentConf.dlZjJl)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$dlZjJl}}
	{{lz.set("dlJjJl_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"dlJjJl"))))}}
	{{lz.set("dlJjJl_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$dlJjJl}}
	<dl lz:if="{{dlJjJl_editable||dlJjJl_readonly}}" class="ribs dlJjJl  " major  ref="dlJjJl">
		<dt>代理间接奖励:</dt>
		<dd lz:if="{{dlJjJl_editable}}" input="menoy">
			<lz:block lz:if="{{agentConf$dlJjJl}}">
				{{agentConf$dlJjJl}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$dlJjJl}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="agentConf.dlJjJl" id="dlJjJl"  value="{{lz.htm(agentConf.dlJjJl)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的代理间接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{dlJjJl_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="dlJjJl">{{agentConf.dlJjJl}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.dlJjJl$||agentConf.dlJjJl)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$dlJjJl}}
	{{lz.set("fxZjJl_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"fxZjJl"))))}}
	{{lz.set("fxZjJl_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$fxZjJl}}
	<dl lz:if="{{fxZjJl_editable||fxZjJl_readonly}}" class="fxZjJl  " major  ref="fxZjJl">
		<dt>分销直接奖励:</dt>
		<dd lz:if="{{fxZjJl_editable}}" input="menoy">
			<lz:block lz:if="{{agentConf$fxZjJl}}">
				{{agentConf$fxZjJl}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$fxZjJl}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="agentConf.fxZjJl" id="fxZjJl"  value="{{lz.htm(agentConf.fxZjJl)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入代理卡配置的分销直接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{fxZjJl_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="fxZjJl">{{agentConf.fxZjJl}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.fxZjJl$||agentConf.fxZjJl)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$fxZjJl}}
	{{lz.set("fxJjJl_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"fxJjJl"))))}}
	{{lz.set("fxJjJl_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$fxJjJl}}
	<dl lz:if="{{fxJjJl_editable||fxJjJl_readonly}}" class="ribs fxJjJl  " major  ref="fxJjJl">
		<dt>分销间接奖励:</dt>
		<dd lz:if="{{fxJjJl_editable}}" input="menoy">
			<lz:block lz:if="{{agentConf$fxJjJl}}">
				{{agentConf$fxJjJl}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$fxJjJl}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="agentConf.fxJjJl" id="fxJjJl"  value="{{lz.htm(agentConf.fxJjJl)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的分销间接奖励</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{fxJjJl_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="fxJjJl">{{agentConf.fxJjJl}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.fxJjJl$||agentConf.fxJjJl)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$fxJjJl}}
	{{lz.set("purchase_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"purchase"))))}}
	{{lz.set("purchase_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$purchase}}
	<dl lz:if="{{purchase_editable||purchase_readonly}}" class="ribs purchase   wider" minor  ref="purchase">
		<dt>代理政策简述:</dt>
		<dd lz:if="{{purchase_editable}}" input="textarea">
			<lz:block lz:if="{{agentConf$purchase}}">
				{{agentConf$purchase}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$purchase}}">
		 	<textarea class="input wide"  id="purchase" name="agentConf.purchase" rows="5">{{agentConf.purchase}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的代理政策简述</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{purchase_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(agentConf.purchase$||agentConf.purchase)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$purchase}}
	{{lz.set("agreement_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"agreement"))))}}
	{{lz.set("agreement_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$agreement}}
	<dl lz:if="{{agreement_editable||agreement_readonly}}" class="ribs agreement   wider" minor  ref="agreement">
		<dt>代理协议:</dt>
		<dd lz:if="{{agreement_editable}}" input="html">
			<lz:block lz:if="{{agentConf$agreement}}">
				{{agentConf$agreement}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$agreement}}">
		    <textarea class="input wide html"  id="agreement" name="agentConf.agreement" style="height:300px;visibility:hidden;">{{agentConf.agreement}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的代理协议</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{agreement_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(agentConf.agreement$||agentConf.agreement)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$agreement}}
	{{lz.set("policy_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"policy"))))}}
	{{lz.set("policy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$policy}}
	<dl lz:if="{{policy_editable||policy_readonly}}" class="ribs policy   wider" minor  ref="policy">
		<dt>分销政策:</dt>
		<dd lz:if="{{policy_editable}}" input="textarea">
			<lz:block lz:if="{{agentConf$policy}}">
				{{agentConf$policy}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$policy}}">
		 	<textarea class="input wide"  id="policy" name="agentConf.policy" rows="5">{{agentConf.policy}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的分销政策</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{policy_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(agentConf.policy$||agentConf.policy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$policy}}
	{{lz.set("interest_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"interest"))))}}
	{{lz.set("interest_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$interest}}
	<dl lz:if="{{interest_editable||interest_readonly}}" class="ribs interest   wider" minor  ref="interest">
		<dt>权益介绍文字:</dt>
		<dd lz:if="{{interest_editable}}" input="textarea">
			<lz:block lz:if="{{agentConf$interest}}">
				{{agentConf$interest}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$interest}}">
		 	<textarea class="input wide"  id="interest" name="agentConf.interest" rows="5">{{agentConf.interest}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的权益介绍文字</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{interest_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(agentConf.interest$||agentConf.interest)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$interest}}
	{{lz.set("agentcAgentAccessionConditions_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"agentcAgentAccessionConditions"))))}}
	{{lz.set("agentcAgentAccessionConditions_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$agentcAgentAccessionConditions}}
	<dl lz:if="{{agentcAgentAccessionConditions_editable||agentcAgentAccessionConditions_readonly}}" class="ribs agentcAgentAccessionConditions   wider" minor  ref="agentcAgentAccessionConditions">
		<dt>代理加入条件:</dt>
		<dd lz:if="{{agentcAgentAccessionConditions_editable}}" input="textarea">
			<lz:block lz:if="{{agentConf$agentcAgentAccessionConditions}}">
				{{agentConf$agentcAgentAccessionConditions}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$agentcAgentAccessionConditions}}">
		 	<textarea class="input wide"  id="agentcAgentAccessionConditions" name="agentConf.agentcAgentAccessionConditions" rows="5">{{agentConf.agentcAgentAccessionConditions}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入代理卡配置的代理加入条件</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{agentcAgentAccessionConditions_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(agentConf.agentcAgentAccessionConditions$||agentConf.agentcAgentAccessionConditions)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$agentcAgentAccessionConditions}}
	{{lz.set("qrCode_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"qrCode"))))}}
	{{lz.set("qrCode_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$qrCode}}
	<dl lz:if="{{qrCode_editable||qrCode_readonly}}" class="qrCode   wider" major  ref="qrCode">
		<dt>二 维 码:</dt>
		<dd lz:if="{{qrCode_editable}}" input="image">
			<lz:block lz:if="{{agentConf$qrCode}}">
				{{agentConf$qrCode}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$qrCode}}">
		    <input type="text" class="input" maxlength="128" size="32" name="agentConf.qrCode" id="qrCode"  value="{{lz.htm(agentConf.qrCode)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#qrCode').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#qrCode').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#qrCode').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传代理卡配置的二维码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{qrCode_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="qrCode">{{agentConf.qrCode}}</textarea>
		 		<span>
		 	<img lz:if="{{agentConf.qrCode}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(agentConf.qrCode)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$qrCode}}
	{{lz.set("status_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{agentConf$status}}">
				{{agentConf$status}}
			</lz:block>
			<lz:block lz:if="{{!agentConf$status}}">
		 	<select class="narrow" id="status" name="agentConf.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{agentConf.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{agentConf.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择代理卡配置的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{agentConf.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(agentConf.status$||agentConf.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{agentConf.id}}" name="agentConf.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
						
						<button lz:if="{{canExp[0]==true}}" type="button" class="button" onclick='window.location.href="/admin/agents/agentconf.edit.html?id={{agentConf.id}}&edittype=codeSave"'>
							生成二维码
						</button>
						
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/agents/agentconf.edit.html?edittype=update&id={{agentConf.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteAgentconf('{{agentConf.id}}','{{agentConf.name}}')">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>
	
{{lz.set("form_codeSave_test",true)}}
<form lz:if="{{form_codeSave_test && edittype=='codeSave'}}" class="form editform" ref="AgentConf" id="agentconfForm" name="agentconfForm" target="jsoniframe" action="agentconf.{{edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写代理卡配置相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />		
			<input type="hidden" value="{{edittype}}" name="edittype" id="edittype" />
			<input type="hidden" value="{{method}}" name="method" id="method" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			<div class="line"></div>
			<center class="buttons">
				<input type="hidden" value="{{agentConf.id}}" name="agentConf.id" id="id" />
				<button title="保存数据,关闭窗口,刷新原列表" class="button" type="submit" name="submiter" value="完成">
					&nbsp;<img align="absmiddle" height="20" src="/manage/images/icons/Badge-tick.png"/>
					完成&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/manage/images/icons/Badge-multiply.png"/>
					关闭窗口&nbsp;&nbsp;</button>
			</center>
			<br/>
			
		</div>	
	</div>
	<div class="foot"></div>		
</form>
	


 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>